export function debounce(fn, delay) {
    let t = null
    return function(...args) {
        if (t) {
            clearInterval(t)
        }
        setTimeout(() => {
            fn.call(this, args)
        }, delay)
    }
}
